#pragma once
#include "matrix.h"
#include "primitive.h"

class bicubic_patch : public primitive {
    public:
        bicubic_patch() { };
        bool diceable(const matrix4f& view, float shadingrate, int gridsize, int& u, int& v);
        void split(std::stack<primitive_ptr>&);
        grid<vertex>* dice(int uratio, int vratio);
        void bound() { }
        vertex vertices[4][4];    
};
